{include file='header.tpl'}

<h1 class="page-header">Lista de Menus</h1>

<div class="table-responsive">
    <table class="table table-striped">
        <thead>
            <tr>
                <th>#</th>
                <th>Menu</th>
                <th>Menu Pai</th>
                <th>Usuario</th>
                <th>Ações</th>
            </tr>
        </thead>
        <tbody>
            {foreach from=$dados item=dado}
            <tr>
                <td>{$dado.id_menu}</td>
                <td>{$dado.menu}</td>
                <td>{$dado.menu_pai}</td>
                <td>{$dado.usuario}</td>
                <td>
                    <a href="cadastra_menu.php?id_menu={$dado.id_menu}"><img src="imagem/v3/botoes/editar.png"></a>                    
                    <span id="Aguardando{$dado.id_menu}"><a href="javascript:;" onclick="ExcluirPadrao(this,'menu',{$dado.id_menu},'lista_menu.php');"><img src="imagem/v3/botoes/excluir.png"></a></span>                    
                </td>
            </tr>
            {/foreach}
        </tbody>
    </table>
</div>    
{literal}
    <script type="text/javascript">
        $(document).ready(function(){
            $( ".accordion" ).accordion( "option", "active", 3 );
        });
    </script>
{/literal}
{include file='footer.tpl'}